package leetcode;


import java.util.Scanner;

/**
 * create by duanx 2022/2/7
 *
 * @classname: Test3
 * @author: duanx
 * @date: 2022/2/7 9:22
 **/
public class Test14 {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()){
            int high = scanner.nextInt();
            double h = (double)high;
            double total = 0;
            double five = 0;
            int count = 5;
            while (count>0){
                total += h;
                h = (h)/2;
                count--;
                if (count == 0){
                    five = h;
                }
            }
            System.out.println(total*2-1);
            System.out.println(five);
        }
    }
}
